package com.example;

import akka.actor.ActorRef;
import akka.actor.ActorSystem;
import akka.actor.Props;

public class InitActorSystemRef {


    public static  ActorRef actorRef (Class classs,String actorName){
        ActorSystem actorSystem = ActorSystem.create("sys");
        ActorRef actorRef = actorSystem.actorOf(Props.create(classs), actorName);
        return  actorRef;
    }

    public static  ActorSystem actorSystem(){
        ActorSystem actorSystem = ActorSystem.create("sys");

        return  actorSystem;
    }
}
